package com.jd.service;

import com.jd.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

/**
 * <p>
 * 平台用户 服务类
 * </p>
 *
 * @author wangshuping
 * @since 2021-11-15
 */
public interface UserService extends IService<User> {

    User getAdminUserByUsername(String username);

    User getCommonUserByUsername(String username);

    List<String> getAllResources();

    String selectRoleCode(Long userId,String adminRole);

    List<String> getResourcesByUserId(Long userId);
}
